package HomeWork2;

import java.io.Serializable;

public class Student implements Serializable {
	private String studentId;
    private String name;
    private double score1;
    private double score2;
    private double score3;
    private double average;

    public Student(String studentId, String name, double score1, double score2, double score3) {
        this.studentId = studentId;
        this.name = name;
        this.score1 = score1;
        this.score2 = score2;
        this.score3 = score3;
        this.average = (score1 + score2 + score3) / 3;
    }
}